home *** CD-ROM | disk | FTP | other *** search
- 134
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- XCopyProgress
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- (continued)
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- A return value of 7 (Dest file is newer than Source file) can only be returned when
- --- RECORDSEPARATOR ---
- Overwrite is "IfNewer". The other return values can be returned for all Overwrite
- --- RECORDSEPARATOR ---
- options.
- --- RECORDSEPARATOR ---
- The "IfNewer" option operates as follows: if both files have internal version
- --- RECORDSEPARATOR ---
- numbers, then these numbers are used for comparison, otherwise the dates of the
- --- RECORDSEPARATOR ---
- two files are used for comparison.
- --- RECORDSEPARATOR ---
- Seven Flags are defined:
- --- RECORDSEPARATOR ---
- CP_NOCANCEL
- --- RECORDSEPARATOR ---
- 1
- --- RECORDSEPARATOR ---
- does not show the Cancel button.
- --- RECORDSEPARATOR ---
- CP_NOFILENAME
- --- RECORDSEPARATOR ---
- 2
- --- RECORDSEPARATOR ---
- does not display the file names while copying.
- --- RECORDSEPARATOR ---
- CP_STOPONERROR
- --- RECORDSEPARATOR ---
- 4
- --- RECORDSEPARATOR ---
- stop copying if an error occurs
- --- RECORDSEPARATOR ---
- CP_NODIALOG
- --- RECORDSEPARATOR ---
- 8
- --- RECORDSEPARATOR ---
- does not show the dialog box
- --- RECORDSEPARATOR ---
- CP_CALLBACK
- --- RECORDSEPARATOR ---
- 16
- --- RECORDSEPARATOR ---
- enable the copy callback handler
- --- RECORDSEPARATOR ---
- CP_ANIMATE
- --- RECORDSEPARATOR ---
- 32
- --- RECORDSEPARATOR ---
- shows system file copying animation (Windows only)
- --- RECORDSEPARATOR ---
- CP_SIZEUPDATE
- --- RECORDSEPARATOR ---
- 64
- --- RECORDSEPARATOR ---
- updates the cal
- --- RECORDSEPARATOR ---
- lback handler by size
- --- RECORDSEPARATOR ---
- You can add any of these flags together to customize the dialog box.
- --- RECORDSEPARATOR ---
- To implement the callback handler, use the CP_CALLBACK flag. Typically you
- --- RECORDSEPARATOR ---
- would also use the CP_NODIALOG flag and implement your own dialog box. If you
- --- RECORDSEPARATOR ---
- use this flag then you need to add a handler called 'baCopyProgressUpdate'. This
- --- RECORDSEPARATOR ---
- handler needs to be a movie script.
- --- RECORDSEPARATOR ---
- This handler will have two arguments passed into it - the percentage copied so far
- --- RECORDSEPARATOR ---
- and the current file being copied. The handler will be called whenever the
- --- RECORDSEPARATOR ---
- percentage copied has increased by one, or a new file is being copied. If you
- --- RECORDSEPARATOR ---
- specify the CP_SIZEUPDATE, then your handler will be called whenever
- --- RECORDSEPARATOR ---
- approximately 64k of data has been copied, rather than by percentage.
- --- RECORDSEPARATOR ---
- To stop copying, you can return 1 in your handler; return 0 or no return to continue
- --- RECORDSEPARATOR ---
- copying. An example handler is listed below - the update functions would be used
- --- RECORDSEPARATOR ---
- to update your own progress dialog.
- --- RECORDSEPARATOR ---
- on baCopyProgressUpdate percentage, filename
- --- RECORDSEPARATOR ---
- updateProgressBar percentage
- --- RECORDSEPARATOR ---
- updateStatus fileName
- --- RECORDSEPARATOR ---
- if keyPressed( " " ) then -- if user presses space bar, stop copying
- --- RECORDSEPARATOR ---
- return 1
- --- RECORDSEPARATOR ---
- end if
- --- RECORDSEPARATOR ---
- end
- --- RECORDSEPARATOR ---
- The callback handler is only available on Director.